$ontext
UK electricity marekt simulation under
counterfactual carbon prices keeping
everything else constant 
$offtext

$if not set pcarb $abort "#### Cannot run carbon price simulation without a price ####";


pCO2(t) = %pcarb%;

* keep fuel prices constant at the level given at the beginning of the sample
pf(f,t) = sum(tt$(ord(tt) eq 1), pf(f,tt));


GEN.FX(p,t)$(avail(p,t)*cap(p) eq 0) = 0;
merit_order.holdfixed = 1;
solve merit_order using LP minimizing COST;

$include report

execute_unload "%outdir%%scenario%_%pcarb%.gdx";